
<%@ page import="gracker.Project" %>
<!DOCTYPE html>
<html>
	<head>
		<meta name="layout" content="main">
		<g:set var="entityName" value="${message(code: 'project.label', default: 'Project')}" />
		<title><g:message code="default.list.label" args="[entityName]" /></title>
	</head>
	<body>
		<a href="#list-project" class="skip" tabindex="-1"><g:message code="default.link.skip.label" default="Skip to content&hellip;"/></a>
		<div class="nav" role="navigation">
			<ul>
				<li>
                    <a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a>
                </li>
				<li>
                    <g:link controller="project" action="list">My Projects</g:link>
                </li>
                <li>
                    <g:link controller="task" action="list">My Tasks</g:link>
                </li>
                <sec:ifAllGranted roles="ROLE_ADMIN">
                    <li>
                        <g:link controller="user" action="list">Users</g:link>
                    </li>
                    <li>
                        <g:link controller="securityMap" action="list">Security Map</g:link>
                    </li>
                </sec:ifAllGranted>
                <sec:ifAllGranted roles="ROLE_USER">
                    <li>
                        <g:link controller="user" action="show" id="${userInstance.id}"> Show Profile </g:link>
                    </li>
                </sec:ifAllGranted>
                <li>
                    <g:link controller="logout" action="index">Logout</g:link>
                </li>
			</ul>
		</div>
    <div id="show-project" class="content scaffold-show" role="main">
        <h1> Welcome, ${userInstance.getUsername()}</h1>
         </div>
	</body>
</html>
